<?php
//右下角 我关注的人模块
class ml_biz_module_iFollow {
    
    var $oFollow;
    var $oHash;
    
    function __construct() {
        $this->oFollow = new ml_model_dbFollow();
        $this->oHash = new ml_model_rdsHash();
    }
    
    /**
     * 
     * @param int $uid            谁的关注人
     * @param int $visitUid        访问者的uid  我/她关注的人    不想重新比较了
     * @return string
     */
    function getList($uid,$visitUid) {
        $this->oFollow->getList($uid,0,12);
        $uidlist = $this->oFollow->get_data();
        $uids = Tool_array::format_2d_array($uidlist , 'follow_uid' , Tool_array::FORMAT_KEY2VALUE );
        $list = array();
        if(is_array($uids) && count($uids) > 0) {
            $nicksList = ml_tool_nick::uids2nicks($uids);
            foreach($uids as $k => $v) {
                $list[$v]['url'] = ml_tool_urlMaker::person_index($v);
                $list[$v]['nick'] = $nicksList[$v]=== false ? '' : $nicksList[$k];
                $list[$v]['head'] = ml_tool_picid::uid2portrait($v , 'sml');    //头像
            }
        }
        
        
        return $list;
    }
    
    
}
